/*
 * KKModelParseUtils.h
 *
 *  Created on: 2013-8-28
 *      Author: wh
 */

#ifndef KKMODELPARSEUTILS_H_
#define KKMODELPARSEUTILS_H_

#include "kaka_common.h"
#include "KKModel.h"
#include "CCArmature/external_tool/Json/lib_json/json_lib.h"

class KKModelParseUtils {

protected:

	static KKModel* parse(CSJson::Value& value);

	static KKModel* parse(CSJson::Value& value, KKModel* model);

public:
	KKModelParseUtils();

	virtual ~KKModelParseUtils();

	static KKModelList* parseList(std::string& response,
			KKModelList* results = NULL);

	static KKModel* parseModel(std::string& response);

	static KKModel* parseModel(std::string& response, KKModel* model);
};

#endif /* KKMODELPARSEUTILS_H_ */
